-- GENERATED SPELL FOR [Thassarian] --


function spell0_29200(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29200', 558, 1)
end

function spell1_29200(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29200', 20000, 1)
end

function spell2_29200(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(50688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29200', 12000, 1)
end

function spell3_29200(pUnit, Event) --@The Light of Dawn,Self--
pUnit:FullCastSpellOnTarget(53658,pUnit)
pUnit:RegisterEvent('Sorts_29200', 612, 1)
end

function Sorts_29200(pUnit, Event)
local choix_sorts_29200 = math.random(0, 3)
if choix_sorts_29200 == 0 then
pUnit:RegisterEvent('spell0_29200', 1, 1)
end
if choix_sorts_29200 == 1 then
pUnit:RegisterEvent('spell1_29200', 1, 1)
end
if choix_sorts_29200 == 2 then
pUnit:RegisterEvent('spell2_29200', 1, 1)
end
if choix_sorts_29200 == 3 then
pUnit:RegisterEvent('spell3_29200', 1, 1)
end
end

function mob29200_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29200', math.random(1500, 3000), 1)
end

function mob29200_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29200_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29200_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29200, 1, 'mob29200_Action')
RegisterUnitEvent(29200, 2, 'mob29200_Leave')
RegisterUnitEvent(29200, 3, 'mob29200_Kill')
RegisterUnitEvent(29200, 4, 'mob29200_Die')
